<!doctype html>
<html>
    <head>
        <title>YSlow</title>
        <meta name="viewport" content="width=device-width; initial-scale=1.0;">
    </head>
    <body>
        <h1>YSlow bookmarklet</h1>

        <h3>Desktop</h3>
        <ul>
            <li>Drag the YSlow link below to your bookmarks toolbar or add it to your favorites</li>
            <li><a id="lnk">YSlow</a></li>
        </ul>

        <h3>Mobile</h3>
        <ol>
            <li>bookmark this current page</li>
            <li>edit the bookmark URL and remove everything up to and including the hash ("<code>&#35;</code>") so that the bookmark URL starts with "<code>javascript:</code>"</li>
        </ol>
        <ul>
            <li>alternatively, you can copy the input text below and paste it as a new bookmark</li>
            <li><input type="text" id="txt" style="width:90%"></li>
        </ul>
        <script>
            (function () {
                var doc = document,
                    path = 'http://d.yimg.com/jc/yslow-bookmarklet.js',
                    js = 'javascript:(function(y,p,o){p=y.body.appendChild(y.createElement(\'iframe\'));p.id=\'YSLOW-bookmarklet\';p.style.cssText=\'display:none\';o=p.contentWindow.document;o.open().write(\'<head><body onload="YUI_config={win:window.parent,doc:window.parent.document};var d=document;d.getElementsByTagName(\\\'head\\\')[0].appendChild(d.createElement(\\\'script\\\')).src=\\\'' + path + '\\\'">\');o.close()}(document))';

                location.hash = doc.getElementById('txt').value =
                    doc.getElementById('lnk').href = js;
            }());
        </script>
    </body>
</html>
<!--
Copyright (c) 2012, Yahoo! Inc.  All rights reserved.
Copyright (c) 2013, Marcel Duran and other contributors. All rights reserved.
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
-->
